package com.heima.ssm.service.impl;

import com.heima.ssm.mapper.UserMapper;
import com.heima.ssm.pojo.User;
import com.heima.ssm.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @package com.heima.ssm.service.impl
 * @description:
 * @author: 86157
 * @date 2019/6/3 17:20
 * @version: V1.0
 */
@Service("userService")
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User findUserById(Long id) {
        User user = userMapper.findUserById(id);
        return user;
    }

    @Override
    public void deleteUserById(Long id) {
        userMapper.deleteUserById(id);
    }

    public void add(){
        System.out.println("Hello Git!");
        System.out.println("Hello Idea!");
        System.out.println("Hello Dev!");
    }
    
}